<?php
class Revision_model extends CI_Model {
var $id_revision=null;
var $id_publication_info = null;
var $id_utilisateur=null;
var $date_revision=null;
function __construct()
	{
		parent::__construct();
	}
	function create ()
	{
		$this->date_revision = date_db_format();
		if ($this->id_publication_info == null || $this->id_utilisateur==null)
			$result = FALSE;
		else{
			$result = $this->db->insert('revision', $this);
			$this->id_publication = $this->db->insert_id();
			}			
		return $result;	
	}
	
}